<template>
    <div class="text" @click="$emit('goDetail')">
        <div class="left">{{ helpPoorArr.title }}</div>
        <div class="time">{{ time }}</div>

    </div>
</template>
<script>
export default {
    name: 'HelpPoorInfo',
    components: {

    },
    mixins: [],
    props: ['helpPoorArr', 'goDetail'],
    data() {
        return {

        }
    },
    computed: {
        time() {
            return this.helpPoorArr.createdDt.slice(0, 10)
        }
    },
    watch: {

    },
    mounted() {
    },
    methods: {

    }
};
</script>
<style lang='less' scoped>
.text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    line-height: 40px;
    cursor: pointer;


    .left {
        font-size: 15px;
        width: 420px;
        text-overflow: ellipsis;
        overflow: hidden;
        text-wrap: nowrap;
    }

    .time {
        font-size: 14px;
        color: #7f7f7f;
    }
}
</style>